define(["app"], function(app) {
	
	var deps = ["$resource", "BaseService"];
	
	function resource($resource, BaseService) {
		var postHeader = {
				"Content-Type" : "application/x-www-form-urlencoded;charset=utf-8"
		};
		
		return $resource(BaseService.restfulUrl + "survey", {}, {
			getSurveyList : {
				method : "POST",
				url : BaseService.restfulUrl + "survey/list",
				headers : postHeader,
				isArray : true
			}
		});
	}
	
	resource.$inject = deps;
	app.lazy.factory("SurveyResource", resource);
});
